﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Measure_distance_between_points
{
	class Program
	{
		static void Main(string[] args)
		{
			while (true)
			{
				int x1, x2, y1, y2, x, y;
				Console.WriteLine("Insert x1");
				x1 = int.Parse(Console.ReadLine());
				Console.WriteLine("Insert y1");
				y1 = int.Parse(Console.ReadLine());
				Console.WriteLine("Insert x2");
				x2 = int.Parse(Console.ReadLine());
				Console.WriteLine("Insert y2");
				y2 = int.Parse(Console.ReadLine());
				x = (x2 - x1);
				y = (y2 - y1);
				Console.WriteLine(Math.Sqrt((Math.Pow(x, 2)) + (Math.Pow(y, 2))));
				Console.ReadKey();
			}
		}
	}
}
